#define EXPORT(type) extern "C" __declspec(dllexport)## type __cdecl
#define EXPORT2(type) extern "C" __declspec(dllexport) type __cdecl

EXPORT(int) fun1()
{
	return 1;
}

EXPORT2(int) fun2()
{
	return 2;
}

__declspec(dllexport) int fun3()
{
	return 3;
}

int __declspec(dllexport) __cdecl fun4()
{
	return 4;
}
